package two.chapter_1.c1_2;

import edu.princeton.cs.algs4.StdOut;
import edu.princeton.cs.algs4.StdRandom;

public class Ex1_2_16 {

    public static void main(String [] args){


        Rational rationalA=new Rational(3,8);
        Rational rationalB=new Rational(2,4);

        StdOut.println(rationalA.plus(rationalB));
        StdOut.println(rationalA.minus(rationalB));
        StdOut.println(rationalA.times(rationalB));
        StdOut.println(rationalA.devides(rationalB));


    }
}
